class Background {
    constructor() {
        this.x = 0;
        this.y = 0;
        this.img = resObj.bg[0];
        this.width = this.img.width;
        this.height = this.img.height;
    }
    /**
     * 
     * @param {CanvasRenderingContext2D} ctx 
     */
    draw(ctx) {
        ctx.drawImage(this.img, this.x, this.y, this.width, this.height);
    }
}